<?php

if ( ! defined("IN_OP") )
{
    exit("You can't access this file directly...");
}
$ui = new UI();
$tpl = new Template2();
$conf = new Config();
include( "member/news.php" );
$tpl->load(array("main"=>"rule.htm"));
$yy = intval($conf->get("chinayear"));
$tpl->set("cchinayear","<font color=\"#FF0000\">" . $g_chinayear[$yy] . "</font>");
$yearArr = GetChinaYearNumber(0);
$html = "";
$i = $yy;
while ( $i <= 12 )
{
    $html .= "<br>" . $g_chinayear[$i] . " : " . implode(" , ",$yearArr[$i]);
    ++ $i;
}
if ( 1 < $yy )
{
    $i = 1;
    while ( $i < $yy )
    {
        $html .= "<br>" . $g_chinayear[$i] . " : " . implode(" , ",$yearArr[$i]);
        ++ $i;
    }
}
$number2 = "lottologo.gif";
$tpl->set("number2",$number2);
$tpl->set("html",$html);
$tpl->show("main");
$ui->footer();
?>